<template>
    <div class="good-list">
        <div class="img">
            <Img :imgSrc="good.gimg"/>
        </div>
        <div class="good-title" v-text="good.gname"></div>
        <p><span>￥{{good.price}}</span> x 4.9万积分</p>
    </div>
</template>

<script>
import Img from "../Img";
export default {
    name: "",
    data() {
        return {};
    },
    props: {
        good:{
            type:Object
        }
    },
    methods: {},
    components: {Img},
    mounted() {},
    updated() {}
};
</script>

<style scoped>
div{
    box-sizing: border-box;
}
.good-list{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 5px;
}
.good-list .good-title{
    width: 100%;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* margin: 0 15px; */
    text-align: center;
}
.good-list p{
    width: 100%;
    font-size: 12px;
    text-align: center;
    margin: 0;
    color: rgb(162, 160, 159);
}
.good-list p span{
    font-size: 14px;
    color: coral;
}
</style>
